package  
{
	import flash.display.*;
	
	/**
	 * 曲线绘制
	 * @author StefanieKaka
	 */
	public final class CurveDrawing extends Sprite 
	{
		/// 构造函数
		public function CurveDrawing() 
		{
			var commands : Vector.<int> = new Vector.<int>();
			var data : Vector.<Number> = new Vector.<Number>();
			
			data.push(200, 200);
			
			data.push(250, 100);
			data.push(300, 200);
			
			data.push(400, 250);
			data.push(300, 300);
			
			data.push(250, 400);
			data.push(200, 300);
			
			data.push(100, 250);
			data.push(200, 200);
			
			commands.push(GraphicsPathCommand.MOVE_TO);
			commands.push(GraphicsPathCommand.CURVE_TO);
			commands.push(GraphicsPathCommand.CURVE_TO);
			commands.push(GraphicsPathCommand.CURVE_TO);
			commands.push(GraphicsPathCommand.CURVE_TO);
			
			this.graphics.lineStyle(0);
			this.graphics.drawPath(commands, data);
		}
		
	}

}